package day10.ZiXi;

import java.util.HashMap;

public class MapDemo01 {
    public static void main(String[] args) {
        //创建集合对象
        HashMap<String, String> hm = new HashMap<>();
        //V put(K key, V value) 将指定的值与该映射中的指定键相关联
        hm.put("itheima001","林青霞");
        hm.put("itheima002","张曼玉");
        hm.put("itheima003","王祖蓝");
        hm.put("itheima004","柳岩");

        //输出集合对象
        System.out.println(hm);
    }
}
